﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ECare.Client.templates;

namespace ECare.Client.frms
{
    public partial class frmPrint : frmNull
    {
        public frmPrint()
        {
            InitializeComponent();
            this.Load += frmPrint_Load;
        }

        void frmPrint_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            this.webBrowser1.Url = new Uri(this.file);
        }

        public string file { get; set; }

        private void eButton1_Click(object sender, EventArgs e)
        {
            var p = new Process { StartInfo = { FileName = this.file, Verb = "Print" } };
            p.Start();
        }
    }
}
